using System;
using System.Collections.Generic;
using System.Text;
using OgilvyOne.DALFactory;
using OgilvyOne.IDAL;
using OgilvyOne.Model;
using System.Collections;

namespace OgilvyOne.BLL
{
    public class TemplateClass
    {
        // Methods
        public void Delete(int tem_id)
        {
            OgilvyOne.DALFactory.TemplateClass.Create().Delete(tem_id);
        }

        public IList getTemList()
        {
            return OgilvyOne.DALFactory.TemplateClass.Create().getTemList();
        }

        public TemInfo gettemplateInfo(int tem_id)
        {
            return OgilvyOne.DALFactory.TemplateClass.Create().getTemplateInfo(tem_id);
        }

        public IList getTemplateList(int menu_uid)
        {
            return OgilvyOne.DALFactory.TemplateClass.Create().getTemplateList(menu_uid);
        }

        public void Insert(TemInfo templatecls)
        {
            OgilvyOne.DALFactory.TemplateClass.Create().Insert(templatecls);
        }

        public void Update(TemInfo templateinfo)
        {
            OgilvyOne.DALFactory.TemplateClass.Create().Update(templateinfo);
        }

    }
}
